package com.baobao_jk.tutorialmod.items.tools;

import com.baobao_jk.tutorialmod.Main;
import com.baobao_jk.tutorialmod.init.ModItems;
import com.baobao_jk.tutorialmod.util.IHasModel;

import net.minecraft.item.ItemSword;

public class ToolSword extends ItemSword implements IHasModel{

    public ToolSword(String name, ToolMaterial material) {
        super(material);
        setUnlocalizedName(name); //未本地化的名称
        setRegistryName(name); //注册的名称
        setCreativeTab(Main.tutorialtab); //标签栏
        ModItems.ITEMS.add(this); //添加item注册
    }

    @Override
    public void registerModels() {
        Main.proxy.registerItemRenderer(this, 0, "inventory"); //代理注册
    }
}
